﻿using System;
using System.Collections.Generic;
using System.Text;
using MyLibrary.ThreeLayer.DataAccess.Attributes;
using MyLibrary.ThreeLayer.DataAccess.Enum;


namespace MyLibrary.ThreeLayer.DataAccess.MetaData
{
    public class Relation
    {
        public readonly RelationType _RelationType;
        public readonly string _RelationTable;
        public readonly Type _RelationTarget;

        public Relation(RelationAttribute attribute)
        {
            this._RelationTarget = attribute._RelationTarget;
            this._RelationTable = attribute._RelationTableName;
            this._RelationType = attribute._RelationType;
        }
    }
}
